function ued_choose_log_path(){
	$('log_path').value = select_save_to_dir();
	ued_prefs.prefs.setCharPref('log_path', $('log_path').value)
}

function select_save_to_dir() {
	const nsIFilePicker = Components.interfaces.nsIFilePicker;
	var fp = Components.classes["@mozilla.org/filepicker;1"].createInstance(nsIFilePicker);
	fp.init(window, "", nsIFilePicker.modeGetFolder);
	var result = fp.show(); 
	if (result == nsIFilePicker.returnOK) {
		var file = fp.file;
		return file.path;
	} else {
		return '';
	}
}

function ued_about() {
	window.open('http://www.sxnsx.com/uedigger/');
}


